.main-menu-category-wrapper {
  font-family: Inter, 'Segoe UI', 'Segoe UI Midlevel', 'Segoe WP', Roboto,
    Helvetica, Arial, Sans-Serif;
  position: relative;
  display: inline-block;

  .main-menu-category-button {
    background: #7626c9;
    color: #f5f0eb;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;

    .main-menu-category-button-arrow {
      transition: all 0.3s ease-in-out;

      &.arrow-up {
        transform: rotate(180deg);
      }
    }
  }

  .main-menu-category-dropdown {
    display: inline-flex;
    flex-direction: row;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 32px;

    .main-menu-category-level-1 {
      display: flex;
      flex-direction: column;
      width: 210px;
      overflow: hidden;
      transition: all 0.3s ease-in-out;
      filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.2));
      border-radius: 0 0 10px 10px;

      &.hide-list {
        height: 0 !important;
        opacity: 0.5;
      }

      .main-menu-category-level-1-list {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin-top: 10px;
        background-color: #f5f0eb;
        border-radius: 0 0 10px 10px;

        .category-item {
          font-size: 13px;
          line-height: 20px;
          font-weight: 500;
          color: #171717;
          padding: 8px 12px 8px 9px;
          border-left: 3px solid transparent;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          position: relative;
          cursor: pointer;

          a {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            flex: 1;
          }
        }

        .category-item.active {
          color: #7626c9;
          border-left-color: #7626c9;
          background-color: #e9e4df;
        }
      }
    }

    .main-menu-category-level-2 {
      position: absolute;
      left: 210px;
      display: flex;
      flex-direction: column;
      list-style: none;
      width: 780px;
      height: 100%;
      overflow: hidden;
      max-height: 100%;
      transition: all 0.3s ease-in-out;
      filter: drop-shadow(2px 1px 1px rgba(0, 0, 0, 0.1));

      &.hide-list {
        width: 0 !important;
      }

      .main-menu-category-level-2-wrapper {
        padding: 8px 10px;
        width: 775px;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        flex: 1;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: #fffcfa;
        border-radius: 0 0 10px 0;

        .main-menu-category-level2-all {
          font-size: 15px;
          line-height: 20px;
          font-weight: 700;
          color: #0c0c0c;
          padding: 6px 12px;
          text-align: left;
          cursor: pointer;
        }

        .main-menu-category-level-2-list {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
          align-items: start;
          grid-auto-rows: 5px;
          justify-content: space-between;
          border-radius: 0 0 10px 0;

          .category-block {
            width: 100%;
            display: flex;
            flex-direction: column;
            grid-row-end: span 30;
          }

          .category-item {
            font-size: 13px;
            line-height: 20px;
            font-weight: 700;
            color: #0c0c0c;
            padding: 4.5px 12px;
            border-radius: 4px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            position: relative;
            cursor: pointer;
            text-align: left;

            &.sub {
              font-size: 12px;
              font-weight: 400;
              line-height: 1.4;
            }

            a {
              flex: 1;
            }
          }

          .category-item.active {
            background-color: #f5f0eb;

            &.sub {
              font-weight: 500;
            }
          }
        }

        &::-webkit-scrollbar {
          width: 5px;
        }

        &::-webkit-scrollbar-track {
          background-color: #f1f1f1;
          border-radius: 3px;
        }

        &::-webkit-scrollbar-thumb {
          background-color: #bbbbbb;
          border-radius: 3px;
        }

        &::-webkit-scrollbar-button {
          background-color: #555;
          height: 3px;
          display: none;
        }

        &::-webkit-scrollbar-corner {
          background-color: #f1f1f1;
        }
      }
    }
  }
}